package com.ny.service.impl;

import com.ny.dao.OrderDao;
import com.ny.dao.impl.OrderDaoImpl;
import com.ny.entity.Order;
import com.ny.service.OrderService;

import java.sql.SQLException;
import java.util.List;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao = new OrderDaoImpl();

    public OrderServiceImpl() throws SQLException, ClassNotFoundException {
    }

    @Override
    public int addOrder(Order order) throws SQLException {
        return orderDao.addOrder(order);
    }

    @Override
    public List<Order> findAllOrder() throws SQLException {
        return List.of();
    }
}
